package com.taomus.mytools.simplec.utils;

import java.util.LinkedList;

import com.taomus.mytools.simplec.generate.WordEnum;

public class Tools {
	public static void println(LinkedList<?> list){
		for(Object obj : list){
			System.out.println(obj);
		}
	}
	/**
	 * 将token常量转换为java类型
	 * @param we
	 * @return
	 */
	public static Class<?> toJavaType(WordEnum we){
		switch(we){
		case _INT16:
			return int.class;
		case _INT64:
			return long.class;
		case _DOUBLE:
			return double.class;
		case _FLOAT:
			return float.class;
		case _CHAR:
			return char.class;
		case _STRING:
			return String.class;
		case _INT:
		default:
			return int.class;
		}
	}
}

